package com.hao.eduservice.service;

import com.hao.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hao.eduservice.entity.chapter.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author hao
 * @since 2020-12-02
 */
public interface EduChapterService extends IService<EduChapter> {

    /**
     * 被课程章节视频id
     *
     * @param courseId 进程id
     * @return {@link List<ChapterVo>}
     */
    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    /**
     * 删除章
     *
     * @param chapterId 章id
     * @return boolean
     */
    boolean deleteChapter(String chapterId);

    /**
     * 通过课程id删除
     *
     * @param courseId 进程id
     */
    void removeByCourseId(String courseId);
}
